import { Base64 } from "../lib/base64";

/**
 * error
 * **/
export function base64String2arrayBuffer2(base64: string): ArrayBuffer {
  const binaryString = Base64.atob(base64);
  const len = binaryString.length;
  const bytes = new Uint8Array(len);
  for (let i = 0; i < len; i++) {
    bytes[i] = binaryString.charCodeAt(i);
  }
  return bytes.buffer;
}
